home *** CD-ROM | disk | FTP | other *** search
- // keyboard driver: keybrd.cpp
-
- #include "keybrd.h"
-
- unsigned KeyEvent(void)
- // Looks for a key pressed. If found, the key
- // is removed from the keyboard buffer and returned.
- {
- unsigned E;
- E = bioskey(1);
- if (E != 0) E = bioskey(0);
- return E;
- }
-
- int IsShiftArrow(unsigned k)
- // Returns true if k is a shift-arrow key combination
- {
- return (k == ShiftLeft) || (k == ShiftRight) ||
- (k == ShiftUpKey) || (k == ShiftDnKey);
- }
-
-
-